<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/ticket/memberTicket.js"></script>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <%--<link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/skins/laydate.css">--%>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.css">
    <script src="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.js"></script>
    <style>
        .bootstrap-table .fixed-table-container .table thead th .th-inner {
            text-align: center !important;
        }
    </style>
</head>

<script type="text/javascript">
    /*领用列表*/
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>运营管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>会员优惠券详情</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });
    var has_add = '';
    var has_edit = '';
    var has_delete = '';
</script>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <shiro:hasPermission name="OperationsManagement_memberTicket _reload">
                        <input id="ticketName" name="ticketName" type="text" class="form-control shortInput"
                               placeholder="卡券名称">
                        <select id="ticketSuitType" name="ticketSuitType" class="form-control shortInput input-distance"
                                placeholder="卡券类型">
                            <option value="" selected>请选择</option>
                            <option value="0">充电减免</option>
                            <option value="1">服务费减免</option>
                            <option value="2">充电满折</option>
                            <option value="3">服务费满折</option>
                            <option value="4">代金券</option>
                        </select>
                        <input id="nickname2" name="nickname2" type="text"
                               class="form-control shortInput input-distance"
                               placeholder="用户名">
                        <input id="mobile" name="mobile" type="text" class="form-control shortInput input-distance"
                               placeholder="手机号">
                        <select id="status" name="status" class="form-control shortInput input-distance"
                                placeholder="使用状态">
                            <option value="" selected>使用状态</option>
                            <option value="0">未使用</option>
                            <option value="1">已使用</option>
                            <option value="2">过期</option>
                        </select>
                        <input id="beginTime" name="beginTime" type="text"
                               class="form-control shortInput input-distance"
                               placeholder="开始时间">
                        <input id="endTime" name="endTime" type="text" class="form-control shortInput input-distance"
                               placeholder="结束时间">
                        <button class="btn btn-success input-distance" onclick="memberTicket.reLoad()">查询</button>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="OperationsManagement_memberTicket _export">
                        <div class="pull-left search fr exportNumInput">
                            <input id="count" name="count" type="text" class="form-control" hidden
                                   placeholder="导出条数">
                        </div>
                        <div class="pull-left search fr">
                            <button class="btn btn-success exportBtn" onclick="memberTicket.exportMemberTicket()">导出</button>
                        </div>
                    </shiro:hasPermission>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    // //日期范围限制
    var start = {
        elem: '#beginTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        // theme: '#3195f0',
        // min: laydate.now(), //设定最小日期为当前日期
        // max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
        choose: function (datas) {
            $("#endTime").val("")
            end.min = datas
        }
    };
    var end = {
        elem: '#endTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        // theme: '#3195f0',
        // min: laydate.now(),
        // max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate(start);
    laydate(end);
    laydate.skin('molv');//皮肤


    memberTicket.init();
</script>
</body>
</html>
